package de.openlaboratory.labhub.core.server.servlet;

import javax.servlet.http.HttpServlet;
import de.openlaboratory.labhub.core.framework.ParameterManager;

public abstract class LabHubServlet extends HttpServlet
{
	private static final long serialVersionUID = 8596471356579153633L;

	public String getParameterString(String key)
	{
		Object pmObj = getServletContext().getAttribute ("parameterManager");
		ParameterManager pm = (ParameterManager) pmObj;
		if (pm != null)
			return pm.getParameterString(key);
		else
		{
			System.out.println(0);
			return "";
		}
	}
}